package com.cube.truthseer.controller;


import com.cube.truthseer.common.entity.vo.ResultMessage;
import com.cube.truthseer.service.IVideoService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;


@RequiredArgsConstructor
@RestController
@RequestMapping("/video")
public class VideoController {

    private final IVideoService videoService;

    @PostMapping("/insertVideo")
    public ResultMessage<Object> insertVideo(MultipartFile file){
        return videoService.insertVideo(file);
    }
}
